package com.github.alfred.ddd.core.exception;

import com.dragonsoft.qz.enums.IErrorCodeEnum;

/**
 * @author Administrator
 */
public class ApplicationValidationException extends ApplicationException {

    private static final String DEFAULT_ERR_CODE = "APPLICATION_VALIDATION_ERROR";

    public ApplicationValidationException(String message) {
        super(DEFAULT_ERR_CODE, message);
    }

    public ApplicationValidationException(String message, Throwable ex) {
        super(DEFAULT_ERR_CODE, message, ex);
    }

    public ApplicationValidationException(String errorCode, String message) {
        super(errorCode, message);
    }

    public ApplicationValidationException(String errorCode, String message, Throwable throwable) {
        super(errorCode, message, throwable);
    }

    public ApplicationValidationException(IErrorCodeEnum errorCodeEnum, Throwable throwable) {
        super(errorCodeEnum.getErrorCode(), errorCodeEnum.getErrorMsg(), throwable);
    }


}